import java.util.Scanner;
public class d2{
	public static void main(String args[])
	{
		Scanner cin = new Scanner(System.in);
		int a = cin.nextInt();
		int sum=0;
		while(a>0)
		{
			if(a%2==1)
				sum=sum+a;
			a=cin.nextInt();
		}
		System.out.println(sum);
					
	}
	
}